package com.study.meng.bigevent.service;

import com.study.meng.bigevent.entity.User;

public interface UserService {
    boolean register(User user);

    User findByUserName(String username);

    boolean update(User user);

    boolean updateAvatar(String avatar);

    boolean udpatePwd(User user);

    User findByUserId(Integer userId);

    /**
     * 物理删除用户
     * @param userId
     * @return
     */
    boolean delete(Integer userId);
}
